import { createApp } from 'vue'
import { createPinia } from 'pinia'
import { loadCompone } from '@/vantUI'
import piniaPluginPersist from 'pinia-plugin-persistedstate'

import App from './App.vue'
import router from './router'

const pinia = createPinia()
pinia.use(piniaPluginPersist)

const app = createApp(App)
loadCompone(app)

app.use(pinia)
app.use(router)
app.mount('#app')
